package cn.wolfcode.cloud.shop.vo;



import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author Administrator
 */
@Getter
@Setter
public class LoginVo implements Serializable {

    @Pattern(regexp = "^(1[3456789]\\d{9}$)",message = "手机格式不正确")
    private String mobile;

    @NotNull(message = "密码不能为空")
    private String password;
}
